/**
 * Copyright (C), 2016-2019
 * FileName: HelloController
 * Author:   yacnog_liu
 * Date:     2019/4/4 22:38
 * Description:
 */
package com.mayi.bootdemo.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
public class HelloController {

    @RequestMapping("/hello")
    public Map<String, Object> show() {
        Map<String, Object> map = new HashMap<String, Object>(1);
        map.put("msg", "Hello SpringBoot");
        return map;
    }
}
